package com.gxy.learn.design.model.create.builder;

/**
 * @description: 指挥者
 * @author: gaoxueyong
 * @Date: 2022/11/7 14:16
 */
public class Director {
    private Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    public Bike contruct(){
        builder.setName();
        builder.builderFrame();
        builder.builderSeat();
       return builder.createBike();
    }

}
